<?php

// Check that the dbsettings.php file has been setup
$settings_filename = dirname(__FILE__) . '/dbsettings.php';

if(file_exists( $settings_filename ) == false)
{
	echo "<b>Error</b><br/><i>".$settings_filename."</i> has not been created.<br/>";
	echo 'Please create this file as per the <a href="readme.html">Installation instructions</a> so that lifestylelinking knows what database to connect to.';
} else {
	include_once( dirname(__FILE__) . '/dbsettings.php');
	require_once( dirname(__FILE__) . '/mysql.php' );
	$db=new MySQL(array
		('host'=>DB_HOST, 'user'=>DB_USER, 'password'=>DB_PASSWORD, 'database'=>DB));

	define("RSSDATA", DB);
	define("LIFEDATA", DB);
}
?>